package com.gzy.rpsm_admin.mapper;

import com.github.pagehelper.Page;
import com.gzy.rpsm_admin.pojo.Building;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface BuildingMapper {
    Page<Building> findAllBuilding(@Param("number") String number);
    @Select("SELECT building_name from building where building_id = #{id}")
    String queryById(Integer belong_building);
}
